package 多线程.多线程创建.线程安全.死锁;


public class MyTicket_Main {

    public static void main(String[] args) throws InterruptedException {
        MyTicket myTicket01 = new MyTicket(true);
        MyTicket myTicket02 = new MyTicket(false);

        Thread person01 = new Thread(myTicket01, "用户1");
        Thread person02 = new Thread(myTicket02, "用户2");

        person01.start();
        person02.start();
    }
}
